<layout name="page" />
<block name="content">
	{:widget('page_header/simple',array('name'=>'系统参数','search'=>'N'))}
	<div class="tab-box" style="height:320px;" >
		<div class="tab-header">
			<a class="active">基本设置</a>
			<a href="{:url('weixin')}">微信设置</a>
			<a href="{:url('weixin_menu')}">微信菜单</a>
			<a href="{:url('config')}">系统参数</a>
			<a href="{:url('push')}">推送设置</a>
		</div>
		<div class="tab-content frame" style="margin-top:10px;">
			<form id="form_data" name="form_data" method="post" >
				<input type="hidden" name="data_type" value="system">
				<div class="box">
					<label class="input-label">系统名称*：</label>
					<input class="input w19" type="text" id="system_name" name="system_name" check="required" info="请输入系统名称" value="{$system_data.system_name}">
				</div>
				<div class="box">
					<label class="input-label" for="system_license">授权码：</label>
					<input class="input" type="text" id="system_license" name="system_license" value="{$system_data.system_license}" >
				</div>
				<div class="box">
					<label class="input-label" for="upload_file_ext">上传文件类型*：</label>
					<input class="input" type="text" id="upload_file_ext" name="upload_file_ext" value="{$system_data.upload_file_ext}">
				</div>
				<div class="box">
					<label class="input-label">登录验证码：</label>
					<php>
						if($system_data['login_verify_code']==1){
						$checked='checked';
						}else{
						$checked='';
						}
					</php>
					<label class="checkbox w10">
						<input type="checkbox" name="login_verify_code" id="login_verify_code" value="1" {$checked}>
						<i class="icon"></i>开启</label>
				</div>
				<div class="box">
					<label class="input-label"></label>
					<a class="btn btn-normal" onclick="save();">保存</a>
				</div>
			</form>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use('global', function() {
			var fn = {
				save : function() {
					send_form("form_data", "{:url('save')}", "{:url('index')}", function(ret) {
						if (ret.status) {
							layer.msg(ret.info, {
								time : 1200
							}, function() {
								location.reload(true);
							});
						} else {
							layer.msg(ret.info);
							return false;
						}
					});
				}
			};
			win_exp(fn);
		});
	</script>
</block>